package com.ittony.model.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ittony.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "SysOperLog")
@TableName("sys_oper_log")
public class SysOperLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "Title")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "BusinessType(0:Other 1Add 2Modify 3Delete)")
    @TableField("business_type")
    private String businessType;

    @ApiModelProperty(value = "MethodName")
    @TableField("method")
    private String method;

    @ApiModelProperty(value = "RequestMethod")
    @TableField("request_method")
    private String requestMethod;

    @ApiModelProperty(value = "OperateType(0:Other 1:Backstage 2:MobilePhone)")
    @TableField("operator_type")
    private String operatorType;

    @ApiModelProperty(value = "Operator")
    @TableField("oper_name")
    private String operName;

    @ApiModelProperty(value = "DepartmentName")
    @TableField("dept_name")
    private String deptName;

    @ApiModelProperty(value = "RequestURL")
    @TableField("oper_url")
    private String operUrl;

    @ApiModelProperty(value = "RequestParam")
    @TableField("oper_param")
    private String operParam;

    @ApiModelProperty(value = "ResponseParam")
    @TableField("json_result")
    private String jsonResult;

    @ApiModelProperty(value = "OperateStatus(0Normal,1Exception)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "ErrorMsg")
    @TableField("error_msg")
    private String errorMsg;

    @ApiModelProperty(value = "OperateTime")
    @TableField("oper_time")
    private Date operTime;

}
